package com.jdrx.sw.sewage.beans.vo;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "BigScreeneFfluentVO", description = "数据大屏出水")
@Data
public class BigScreeneFfluentVO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "设备id(作为数据唯一标识)", required = true)
    private Long devId;

    @ApiModelProperty(value = "站点id", required = true)
    private Long stationId;

    @ApiModelProperty(value = "第一条JSON数据", required = true)
    private JSONObject firstJsonVal;

    @ApiModelProperty(value = "最后一条JSON数据", required = true)
    private JSONObject lastJsonVal;

    @ApiModelProperty(value = "第一条采集时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime firstCollectTime;

    @ApiModelProperty(value = "最后一条采集时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastCollectTime;
}